package com.zmj.sy.mom.srv.aps.bean.entity.order;

import com.baomidou.mybatisplus.annotation.TableName;
import com.zmj.sy.mom.srv.aps.bean.entity.base.BaseEntity;
import com.zmj.sy.mom.srv.mbd.api.utils.Comment;
import lombok.Getter;
import lombok.Setter;

import java.time.LocalDate;
import java.time.LocalDateTime;

@Comment("排产-工单明细-日历表")
@Getter
@Setter
@TableName("tb_aps_detail_weekday")
public class ApsDetailWeekday extends BaseEntity {

    @Comment("总订单ID")
    private Integer orderId;

    @Comment("APS订单ID")
    private Integer apsOrderId;

    @Comment("aps-bom表的ID")
    private Integer apsBomId;

    @Comment("工序表的ID")
    private Integer phaseId;

    @Comment("工单Id")
    private Integer apsWorkOrderId;

    @Comment("工单详情Id")
    private Integer apsWorkDetailId;

    @Comment("工作组ID")
    private Integer stationGroupId;

    @Comment("工位ID")
    private Integer stationId;

    @Comment("工作组ID")
    private Integer groupId;

    @Comment("单件工时秒")
    private Integer workTime;

    @Comment("工序名称")
    private String phaseName;

    @Comment("工序编号")
    private String phaseCode;

    @Comment("班制ID")
    private Integer shiftId;

    @Comment("班次")
    private Integer shiftSeq;

    @Comment("班制开始时间")
    private LocalDateTime shiftStartDateTime;

    @Comment("班制结束时间")
    private LocalDateTime shiftEndDateTime;

    @Comment("班制所在天")
    private LocalDate shiftDay;

    @Comment("工单状态 -1待重排 1未启用 2未开工 3开工中 4已完成")
    private Integer state;

    @Comment("计划开始时间")
    private LocalDateTime planStartDateTime;

    @Comment("计划完成时间")
    private LocalDateTime planEndDateTime;

    @Comment("订单导入类型 1ERP 2MBD")
    private Integer orderType;
}
